package com.fjec.paid.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "market-serv")
public interface MarketClient {
    @RequestMapping(method = RequestMethod.POST, value = "/api/ys/reg/self/pay/success")
    int setSelfPaySuccessfully(@RequestParam("orderId") Long orderId);

    @RequestMapping(method = RequestMethod.POST, value = "/api/phy/order/set/dist/accounted")
    int setDistStatusAccounted(@RequestParam("paymentId") Long paymentId);
}
